Set Playing Status of TTS
Function:
magicbox.set_tts_cmd(port, cmd)Description: set operation of text-to-speech modules
Required parameter:
- port: controller port (the value is 2)
- cmd: sound operation. 0: stop; 1: suspend; 2: resume; 3: next; 4: previous
- Return:
- True: The command has been finished.
- False: The command has not been finished.
Example
magicbox.set_tts_cmd(port=2, cmd=0)Set the text-to-speech module connected to Port 2 of controller to stop.